﻿@*@using Microsoft.Web.Helpers*@
@model AutoNewsModel
@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Master/SiteMaster.cshtml";
}
@section MetaKeywords{Xin chao cac bac}
@section HeaderAPI{
 <script language="javascript" type="text/javascript" src="@Url.Script("jquery.cookie.js")"></script>   
}
<script language ="javascript">
    $(document).ready(function () {
        $("#vn").click(function () {
            $.cookie("Language", "vi-VN");
            location.reload();
        });
        $("#en").click(function () {
            $.cookie("Language", "en-US");
            location.reload();
        });
    });
</script>
<h3 style="color:#f31212;font-size:50px">@Resources.Language.About_Omegaspy</h3>
<h3 style="color:#bde113;font-size:50px">Cookie value: @VisitContext.Cookie.Language</h3>
 
<h2>Index</h2>
<br/>
<a  id="vn">VN</a>
<br/>
<br/>
<a  id="en">En</a>
<br/>
@{
        foreach (var news in this.Model.AutoNewsItems)
        {
            @Html.Raw(HttpUtility.HtmlDecode(news.Value)) <text>(Source: @news.Source <br /></text>
            @*<text><a href ="@news.Link" title ='@HttpUtility.HtmlDecode(news.Title)'>@HttpUtility.HtmlDecode(news.Title)</a> (Source:@news.Source)<br/></text>*@
        }
    }
@*    @ReCaptcha.GetHtml(theme: "blue")*@